package com.google.jayd.core;

import java.util.Map;

import org.json.JSONObject;

public final class List {

	private static final String SUB_SECTION = "list";

	private final String section;
	private final RequestExecutor e;

	List(RequestExecutor exec, String sec) {
		e = exec;
		section = sec;
	}

	public JSONObject getJSONObject(Map<String, String> params) {
		return new JSONObject(e.get(section, SUB_SECTION, params));
	}
}
